package com.blame.springblog.common.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
public class BlogException extends RuntimeException{
    private String errMsg;
    private int code;

    public BlogException(String errMsg) {
        this.errMsg=errMsg;
    }

    public BlogException(String errMsg,int code) {
        this.code=code;
        this.errMsg=errMsg;
    }
}
